import preprocess from "svelte-preprocess";
import adapter from "@sveltejs/adapter-static";

/** @type {import('@sveltejs/kit').Config} */
const config = {
    preprocess: preprocess(),

    kit: {
        adapter: adapter({
            pages: 'build',
            assets: 'build',
            fallback: 'src/app.html'
        }),
        // adapter: adapter({
        //     fallback: "src/app.html",
        // }),
        // hydrate the <div id="svelte"> element in src/app.html
        target: "#svelte",

        vite: {
            optimizeDeps: {
                include: [

                ]
            },
        },
    },
};

export default config;